<Open Tag=[<{]>
<Close Tag=[}>]>
@ModelType <{OwnerU}>_<{TableU}>

@Code
    ViewBag.Title = "Delete"
    Layout = "~/Views/Shared/_Layout.vbhtml"
End Code

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<div>
    <h4><{Table}></h4>
    <hr />
    <dl class="dl-horizontal">
    <{If Loop}>
	        <{IsIdentity}>
        @Html.HiddenFor(Function(Model) Model.<{FieldU}>)

	        <{IsNotIdentity}>
        <dt>
            @Html.DisplayNameFor(Function(Model) Model.<{FieldU}>)
        </dt>

        <dd>
	        <{IsNotIdentity}>
	        <{And}>
	        <{IsNotRelated}>
            @Html.DisplayFor(Function(Model) Model.<{FieldU}>)
	        <{IsNotIdentity}>
	        <{And}>
	        <{IsRelated}>
            @Html.DisplayFor(Function(Model) Model.<{ROwner}>_<{RTable}>.<{RDisplayField}>)
        </dd>

    <{/If Loop}>
    </dl>

    @Using (Html.BeginForm()) 
        @<text>
        @Html.AntiForgeryToken()

        <div class="form-actions no-color">
            <input type="submit" value="Delete" class="btn btn-default" /> |
            @Html.ActionLink("Back to List", "Index")
        </div>
        </text>
    End Using
</div>
<Open Tag=[<]>
<Close Tag=[>]>
